package company.meituan_F;

import java.util.Scanner;

public class M4A {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int a = sc.nextInt();
        int b = sc.nextInt();
        int[] aMoney = new int[n];
        int[] bMoney = new int[n];
        for (int i = 0; i < n; i++) {
            aMoney[i] = sc.nextInt();
            bMoney[i] = sc.nextInt();
        }
        int[][] dp = new int[n][3];
        // 取dict1的前a个
        // 取dict2的前b个
    }
}

